class person(name):
    def __init__(self,name,job,pay):
        self.name = name
        self.job = job
        self.pay = pay
    def lastname(self):
        return self.name.split()[-1]
    def giveraise(self,percent):
        self.pay = int(self.pay * (1 + percent))
    def __repr__(self):
        return '[person:%s,%s]' % (self.name,self.pay)

class manager(person):
    def giveraise(self,percent,bonus=.10):
        person.giveraise(self,percent + bonus)
class department:
    def __init__(self,*args):
        self.menbers = list(args)
    def addme(self,person):
        self.menbers.append(person)
    def give(self,percent):
        for person in self.menbers:
            person.giveraise(percent)
    def sholl(self):
        for person in self.menbers:
            print(person)

if __name__ == '__main__':
    sue = person('djy')
    s = person('sue jones',job='dev',pay=10000)
    # tom = manager('tom jones','mgr',10000)
    # mike = person('mike mike','mike',40000)
    # d = department(sue,tom)
    # d.addme(mike)
    # d.give(.10)
    # d.sholl()
